<style type="text/css">
table.addt {padding:5px;background:#F5F5F5;border:1px dotted #F0F0F0;}
table.addt:hover {background:#F2F2F2;border:1px dotted #d9d9d9;}
div.expld {padding:5px;margin-bottom:10px;background:#fffff0;border:1px dotted #e5dd83;}
div.expld:hover {background:#ffffe5;border:1px dotted #e5db6c;} 
form.cmxform label.error, label.error {color: red;font-style: italic;display: inline;border:0px}
</style>
<div class="wrap">
<h2><?php _e("cBlogger Robot Options","cbrobot") ?></h2>
		<div style="width:100%;">		
				<form method="post" action="admin.php?page=cbrobot-options" id="cbrobot_amazon_options">	
						<p class="submit"><input class="button-primary" type="submit" name="cbrobot_amazon_save" value="<?php _e("Save Options","cbrobot") ?>" /></p>
						<h3 style="text-transform:uppercase;border-bottom: 1px solid #ccc;"><?php _e("Amazon Options","cbrobot") ?></h3>	
						<table class="addt" width="100%" cellspacing="2" cellpadding="5" class="editform"> 		
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("Amazon Affiliate ID :","cbrobot") ?></td>
										<td><input size="50" name="cbrobot_aa_affkey" type="text" id="cbrobot_aa_affkey" value="<?php echo $options['cbrobot_aa_affkey']; ?>" /></td> 
								</tr>
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("API Key (Access Key ID) :","cbrobot") ?></td>
										<td><input size="50" name="cbrobot_aa_apikey" type="text" id="cbrobot_aa_apikey" value="<?php echo $options['cbrobot_aa_apikey']; ?>"/></td> 
								</tr>
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("Secret Access Key :","cbrobot") ?></td>
										<td><input size="50" name="cbrobot_aa_secretkey" type="text" id="cbrobot_aa_secretkey" value="<?php echo $options['cbrobot_aa_secretkey']; ?>"/></td> 
								</tr>
						</table>
						<h3 style="text-transform:uppercase;border-bottom: 1px solid #ccc;"><?php _e("User Login","cbrobot") ?></h3>
						<table class="addt" width="100%" cellspacing="2" cellpadding="5" class="editform"> 		
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("User Name :","cbrobot") ?></td>
										<td><input size="50" name="cbrobot_username" type="text" id="cbrobot_username" value="<?php echo $options['cbrobot_username']; ?>" /></td> 
								</tr>
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("Password :","cbrobot") ?></td>
										<td><input size="50" name="cbrobot_password" type="text" id="cbrobot_password" value="<?php echo $options['cbrobot_password']; ?>"/></td> 
								</tr>
						</table>
				</form>
		</div>
		<div style="width:100%;">		
				<form method="post" action="admin.php?page=cbrobot-options" id="cbrobot_cron_options">	
						<p class="submit"><input class="button-primary" type="submit" name="cbrobot_cron_start" value="<?php _e("Start Job","cbrobot") ?>" /></p>
						<h3 style="text-transform:uppercase;border-bottom: 1px solid #ccc;"><?php _e("Cron Options","wpcrobot") ?></h3>	
						<table class="addt" width="100%" cellspacing="2" cellpadding="5" class="editform"> 		
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("Number Post :","cbrobot") ?></td>
										<td><input size="5" name="cbrobot_number_post" type="text" id="cbrobot_number_post" value="<?php echo $options['cbrobot_number_post']; ?>" /></td> 
								</tr>
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("Job Time :","cbrobot") ?></td>
										<td>
											<select id="cbrobot_time" name="cbrobot_time">
												<option value="hourly">hourly</option>
												<option value="daily">daily</option>
											</select>
										</td> 
								</tr>
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("Status :","cbrobot") ?></td>
										<td>
										<?php 
											if(wp_next_scheduled( 'cbrobot_job_event' )) {
												echo "<strong><span style=\"color:green\">Start Job</span></strong>";
											} else {
												echo "<strong><span style=\"color:red\">Stop Job</span></strong>";
											}
										?>
										</td> 
								</tr>
								<tr valign="top"> 
										<td width="20%" scope="row"><?php _e("Next Post :","cbrobot") ?></td>
										<td><?php if(wp_next_scheduled( 'cbrobot_job_event' )) { echo date('Y-m-d h:j:s', wp_next_scheduled( 'cbrobot_job_event' )); } ?></td> 
								</tr>
						</table>
						<p class="submit"><input class="button-primary" type="submit" name="cbrobot_cron_stop" value="<?php _e("Stop Job","cbrobot") ?>" /></p>
				</form>
		</div>
	
</div>
<!--- End wrap--->